
// 获取书籍列表
import { books, word } from "./schema";
import usePagination from "./utils";

/**
 * 获取书籍list
 * @returns 
 */
export const useBookList = () => {
    let data = usePagination<typeof books.$inferSelect>({
        model: books
    })
    return data
}

// /**
//  * 获取书籍单词
//  */
// export const getBookWords = (id) => {
//     let data = usePagination<typeof word.$inferSelect>({
//         model: books
//     })
//     return data
// }

